/* 四位脉动计数器 */

`include "T_FF.v"

module ripple_carry_counter(clk, reset, q_out);
	input clk, reset;
	output [3:0] q_out;
	
	T_FF tff0(.reset(reset), .clk(clk), .q_out(q_out[0]));
	T_FF tff1(.reset(reset), .clk(q_out[0]), .q_out(q_out[1]));
	T_FF tff2(.reset(reset), .clk(q_out[1]), .q_out(q_out[2]));
	T_FF tff3(.reset(reset), .clk(q_out[2]), .q_out(q_out[3]));
	
endmodule